<?php

namespace App\Models;

class PassLog extends Model
{
    protected $fillable = [
        'field_name',
    ];
    protected $table = 'pass_log';
    public function user()
    {
        return $this->hasOne(AppUser::class,'id','user_id');
    }
    public function housings()
    {
        return $this->hasOne(Housings::class,'id','housings_id')->select('id','housings_num','hou_address');
    }
    public function housingsorder()
    {
        return $this->hasOne(HousingsOrder::class,'id','housings_order_id');
    }

    public function equipments()
    {
        return $this->hasOne(Equipment::class,'id','equipments_id');
    }
}
